package com.fyzk.activity.special.virtual_lottery;

import com.fyzk.activity.user.xiangxi.NumLotteryOrderDetailActivity;
import com.fyzk.bean.NumOrderInfo;
import com.fyzk.net.Commands;

import org.json.JSONException;
import org.json.JSONObject;

import http.Common.CommandUtil;
import http.StringResultBean;

/**
 * Created by fanxs11 on 17/1/9.
 *
 * 虚拟投注详情
 */

public class VirtualBetDetailActivity extends NumLotteryOrderDetailActivity {

    protected void getOrderInfo() {
        JSONObject json = new JSONObject();
        try {
            json.put("orderid", id);
        } catch (JSONException e) {
            e.printStackTrace();
        }
        httpPostJson(CommandUtil.VIRTUALORDERINFO, Commands.VIRTUALORDERINFO, json, true);

    }

    NumOrderInfo info;

    @Override
    protected void onSuccess(int requestCode, StringResultBean resultBean, String result) {
        super.onSuccess(requestCode, resultBean, result);
        switch (requestCode) {
            case CommandUtil.VIRTUALORDERINFO:
                perseOrder(resultBean);
                fuZhi();

                break;
        }
    }

}
